package sfy.md.behavior.observer;

import java.util.ArrayList;
import java.util.List;

public abstract class PeopleObserved  implements Observerd<Observer> {

    List<Observer> observers = new ArrayList<>();

    @Override
    public void notifyy() {
        for (Observer observer : observers) {

            observer.detail();
        }


    }

    @Override
    public void add(Observer observer) {
        observers.add(observer);
    }
}